<?php
namespace app\admin\controller;
use think\Session;
class Index extends Action
{
    public function index()
    {
        $data = db("guanli")->where("id",session("UserId"))->find();
        if($data['ma_l']==1)
        	$str = "超级管理员";
        else
        	$str = "普通管理员";

        $aboutType = db("type")->where("cid","=",1)->select();
        return $this->fetch("index",["levername"=>$str,"aboutType"=>$aboutType]);

    }

}

